﻿#region Styx Namespaces
using Styx;
using Styx.Common;
using Styx.CommonBot;
using Styx.CommonBot.Routines;
using Styx.TreeSharp;
using Styx.WoWInternals;
using Styx.WoWInternals.DBC;
using Styx.WoWInternals.WoWObjects;
using Styx.MemoryManagement;
#endregion

namespace GiwinMonk
{
    public partial class Monk : CombatRoutine
    {
        public bool isCrowdControlled()
        {
            ///<summary>
            /// Spell ID - Spell Name - WoWHead Hyperlink
            ///</summary>
            ///<remarks>
            /// 118 - "Polymorph" - http://www.wowhead.com/spell=118
            /// 51514 - "Hex" - http://www.wowhead.com/spell=51514
            /// 20066 - "Repentance" - http://www.wowhead.com/spell=20066
            /// 6358 - "Seduction" - http://www.wowhead.com/spell=6358
            /// 5782 - "Fear" - http://www.wowhead.com/spell=5782
            /// 1499 - "Freezing Trap" - http://www.wowhead.com/spell=1499
            /// 19386 - "Wyvern Sting" - http://www.wowhead.com/spell=19386
            /// 339 - "Entangling Roots" - http://www.wowhead.com/spell=339
            /// 6770 - "Sap" - http://www.wowhead.com/spell=6770
            /// 33786 - "Cyclone" - http://www.wowhead.com/spell=33786
            /// 122 - "Frost Nova" - http://www.wowhead.com/spell=122
            /// 67229 - "Mind Control" - http://www.wowhead.com/spell=67229
            /// 5246 - "Intimidating Shout" - http://www.wowhead.com/spell=5246
            /// 8122 - "Psychic Scream" - http://www.wowhead.com/spell=8122
            /// 39048 - "Howl of Terror" - http://www.wowhead.com/spell=39048
            /// 2094 - "Blind" - http://www.wowhead.com/spell=2094
            ///</remarks>

            if (StyxWoW.Me.HasAura(118) || StyxWoW.Me.HasAura(20066) || StyxWoW.Me.HasAura(51514) || StyxWoW.Me.HasAura(6358) ||
                    StyxWoW.Me.HasAura(5782) || StyxWoW.Me.HasAura(1499) ||
                    StyxWoW.Me.HasAura(19386) || StyxWoW.Me.HasAura(339) || StyxWoW.Me.HasAura(6770) ||
                    StyxWoW.Me.HasAura(33786) || StyxWoW.Me.HasAura(122) || StyxWoW.Me.HasAura(67229) || StyxWoW.Me.HasAura(5246) ||
                    StyxWoW.Me.HasAura(8122) || StyxWoW.Me.HasAura(39048) || StyxWoW.Me.HasAura(2094))
                return true;
             return false;
        }
    }
}
